package com.fairisanddog.service.serviceimpl;


import com.fairisanddog.entity.Cart;
import com.fairisanddog.mapper.CartMapper;
import com.fairisanddog.service.CartService;

import java.util.List;

public class CartServiceImpl implements CartService {
    private CartMapper cartMapper;
    public void setCartMapper(CartMapper cartMapper){
        this.cartMapper = cartMapper;
    }


    public int addShop(Cart cart) {
        return cartMapper.addShop(cart);
    }

    public int deleteShopById(String cid) {
        return cartMapper.deleteShopById(cid);
    }



    public int alterShop(Cart cart) {
        return cartMapper.alterShop(cart);
    }

    public Cart queryShopById(String cid) {
        return cartMapper.queryShopById(cid);
    }





    public List<Cart> queryAllShops() {
        return cartMapper.queryAllShops();
    }

    public Cart queryShopByCidAndUid(String cid, String uid) {
        return cartMapper.queryShopByCidAndUid(cid,uid);
    }
}
